from tkinter import *

print("введите начальную кординату x")
X = int(input())
print("введите начальную кординату Y")
Y = int(input())
print("введите коэффиццент увелечения N:")
N = int(input())
coords=[0,9,1,9,1,11,2,11,2,12,3,12,3,10,40,10,40,0,50,0,50,20,30,20,30,40,50,50,0,50,0,40,20,20,0,20]
if N == 0 and X>=0 and X<=500 and Y>=0 and Y<=500:
   pass
else:
   if N > 0 and 0*N+X>=0 and  0*N+Y>=0 and 20*N+X<=500 and  20*N+Y<=500:
      pass
   else:
      if N < 0 and  20*N+X<=0 and  20*N+Y<=0 and  0*N+X<=500 and  0*N+Y<=500:
         pass
      else:
         print("размер фигуры превышает размерам поля")

root = Tk()
root.title("IT-марафон")
root.geometry("500x500")

canvas=Canvas(bg="green",width=500,height=500)
canvas.pack(anchor=CENTER,expand=1)
canvas.create_polygon(coords[0]*N+X,coords[1]*N+Y,
                     coords[2]*N+X,coords[3]*N+Y,coords[4],coords[5]*N+X,coords[6]*N+Y,
                     coords[7]*N+X,coords[8]*N+X,coords[9]*N+Y,coords[10]*N+X,coords[11]*N+Y)
+root.mainloop()